package de.urw.app;

import java.util.HashMap;

import android.util.Log;

public class URWKitBasicObject {
	
	protected int id;
	protected HashMap<String, Object> data = new HashMap();

	public int getId() {
		return this.id;
	}	
	
	public void set(String key, Object value){
		//Log.d("test", "set: " + key + " - " + value);
		this.data.put(key, value);
	}
	
	public Object get(String key){
		//Log.d("test", "getting: " + key + " " + this.data.get(key));
		if(!this.data.containsKey(key)) return null;
		else return this.data.get(key);
	}

	@Override
	public String toString() {
		return "URWKitBasicObject [id=" + id + ", data=" + data + "]";
	}
	
	
}
